<template>
  <div class="home">
    {{banner}}
  </div>
</template>

<script>

import {onMounted,reactive,ref} from 'vue'
import {getBanner,getHomeAllData} from "@/network/home";
getBanner()
export default {
  name: 'Home',
  setup() {
    let banner=ref([])
    onMounted(() => {
      getHomeAllData().then(res=>{
        banner.value=res.slides;
      }).catch(err=>{

      })
    })
    return {banner}
  }
}
</script>
